<template>
	<view class="performanceViewBox">
		<view class="performanceViewBoxList">
			<view v-for="(ele,ind) in performanceViewBoxList" :class="{'Isborder':ele.isBorder}" :key="ind">
				<view>{{ele.name}}</view>
				<view @click="gotoRouter(ele)">
					<text class='iconfont icon-xiangyou' style="margin-left:5rpx;"></text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		zhixiao_IFramURl
	} from '@/config/app_member.js';
	export default {
		data() {
			return {
				userInfo: {},
				performanceViewBoxList: [{
						name: "绑定充值银行卡",
						path: "/pages/electronicWallet/bankCardDo/BindingRechargeBankCard",
						isJump: false
					},
					{
						name: "银行卡充值",
						path: "/pages/electronicWallet/bankCardDo/index",
						isJump: false
					},{
						name: "电子签约",
						path: "/pages/electronicWallet/bankCardDo/electronicSigning",
						isJump: false
					},
				]
			}
		},
		created() {
			this.userInfo = uni.getStorageSync('userInfo');
			//this.userInfo.tlStatus = 1;
		},
		methods: {
			gotoRouter(ele) {
				if (ele.isJump == false) {
					if (ele.name == '绑定充值银行卡') {
						if (this.userInfo.tlStatus === 1) { //创建会员成功（个人认证）
							uni.navigateTo({
								url: "/pages/electronicWallet/bankCardDo/personalAuthentication"
							});
							return;
						} else if (this.userInfo.tlStatus === 2 || this.userInfo.tlStatus === 3) { //个人实名认证（绑定手机号）
							uni.navigateTo({
								url: "/pages/electronicWallet/bankCardDo/bindMobilePhoneNumber"
							});
							return;
						} else if (this.userInfo.tlStatus == 4) { //实名认证失败（进行提示，重新进行个人认证）
							uni.navigateTo({
								url: "/pages/electronicWallet/bankCardDo/personalAuthentication"
							});
							return;
							//进行提示信息个人实名认证审核失败，请您重新填写！！
						} else if (this.userInfo.tlStatus == 5 || this.userInfo.tlStatus == 6) { //绑定充值银行卡
							uni.navigateTo({
								url: "/pages/electronicWallet/bankCardDo/requestBindbankcard"
							});
							return;
						}
					} else {
						uni.navigateTo({
							url: ele.path
						});
					}

				} else {
					uni.navigateTo({
						url: "/pages/user/memberCenterJumb?path=" + ele.path + "&title=" + ele.name
					});
				}
			}
		}
	}
</script>

<style lang="scss">
	body,
	page {
		background: #fff;
	}

	.performanceViewBox {
		width: 100%;
		height: auto;
		padding: 10rpx 0rpx;
		background: #fff;
		box-sizing: border-box;

		.performanceViewBoxTitle {
			color: #333333;
			font-weight: bold;
			font-size: 60rpx;
			line-height: 100rpx;
			margin-bottom: 40rpx;
			padding: 0 30rpx;
			box-sizing: border-box;
		}

		.performanceViewBoxList {
			>view {
				height: 115rpx;
				line-height: 115rpx;
				border-bottom: 1px solid #ccc;
				color: #333;
				font-size: 32rpx;
				display: flex;
				justify-content: space-between;
				width: calc(100% - 80rpx);
				margin-left: 40rpx;
			}

			>view:nth-child(12) {
				border-bottom: none;
				margin-bottom: 30rpx;
			}
		}
	}

	.Isborder {
		border-bottom: 2rpx solid #ccc !important;
		width: 100% !important;
		padding: 0 40rpx;
		box-sizing: border-box;
		margin-left: 0 !important;
	}
</style>
